package com.tvunetworks.center.device.service;

import com.github.pagehelper.PageInfo;
import com.tvunetworks.center.device.model.DeviceGeoRecord;
import com.tvunetworks.center.device.model.DeviceGeoRecordFavorite;
import com.tvunetworks.center.device.model.Favorite;
import com.tvunetworks.center.device.model.param.DeviceGeoRecordParam;
import com.tvunetworks.center.device.model.param.FavoriteParam;

import java.util.List;
/**
 * @program: tvucc-instance
 * @author lebronchen
 * @create: 2019-02-28 16:53
 **/
public interface DeviceGeoRecordService {
    /**
     *
     * @param deviceGeoRecordParam deviceGeoRecordParam
     * @return List
     */
    List<DeviceGeoRecord> list(DeviceGeoRecordParam deviceGeoRecordParam);

    /**
     *
     * @param deviceGeoRecord deviceGeoRecord
     */
     void save(DeviceGeoRecord deviceGeoRecord);

    /**
     *
     * @param endTime endTime
     */
    void clearGeoRecordHistoryData(String endTime);

    /**
     *  test
     */
     void  test();

    /**
     *
     * @param favoriteParam favoriteParam
     */
    void addFavorite(FavoriteParam favoriteParam);

    /**
     *
     * @param favoriteParam favoriteParam
     * @return PageInfo
     */
    PageInfo<Favorite> listFavirote(FavoriteParam favoriteParam);

    /**
     *
     * @param deviceGeoRecordParam deviceGeoRecordParam
     * @return List
     */
    List<DeviceGeoRecordFavorite> listRecordFavorite(DeviceGeoRecordParam deviceGeoRecordParam);

    /**
     *
     * @param favoriteParam favoriteParam
     */
    void delFavorite(FavoriteParam favoriteParam);
}
